﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 赠送礼物消息
    /// </summary>
    public class DgbMessage : BaseMessage
    {
        public DgbMessage(BaseMessage msg) : base(msg)
        {
        }

        /// <summary>
        /// 房间ID
        /// </summary>
        public int rid
        {
            get { return GetValue(nameof(rid), 0); }
        }

        /// <summary>
        /// 分组号
        /// </summary>
        public int gid
        {
            get { return GetValue(nameof(gid), 0); }
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int uid
        {
            get { return GetValue(nameof(uid), 0); }
        }

        /// <summary>
        /// 礼物ID
        /// </summary>
        public int gfid
        {
            get { return GetValue(nameof(gfid), 0); }
        }


        /// <summary>
        /// 礼物显示样式
        /// </summary>
        public int gs
        {
            get { return GetValue(nameof(gs), 0); }
        }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nn
        {
            get { return GetValue(nameof(nn), ""); }
        }


        /// <summary>
        /// 战斗力
        /// </summary>
        public int str
        {
            get { return GetValue(nameof(str), 0); }
        }

        /// <summary>
        /// 用户等级
        /// </summary>
        public int level
        {
            get { return GetValue(nameof(level), 0); }
        }

        /// <summary>
        /// 主播体重
        /// </summary>
        public int dw
        {
            get { return GetValue(nameof(dw), 0); }
        }

        /// <summary>
        /// 礼物数量
        /// </summary>
        public int gfcnt
        {
            get { return GetValue(nameof(gfcnt), 1); }
        }

        /// <summary>
        /// 连击数
        /// </summary>
        public int hits
        {
            get { return GetValue(nameof(hits), 1); }
        }

        /// <summary>
        /// 酬勤头衔
        /// </summary>
        public int dlv
        {
            get { return GetValue(nameof(dlv), 0); }
        }

        /// <summary>
        /// 酬勤个数
        /// </summary>
        public int dc
        {
            get { return GetValue(nameof(dc), 0); }
        }

        /// <summary>
        /// 全站最高酬勤等级
        /// </summary>
        public int bdl
        {
            get { return GetValue(nameof(dc), 0); }
        }

        /// <summary>
        /// 分组号
        /// </summary>
        public int rg
        {
            get { return GetValue(nameof(rg), 1); }
        }

        /// <summary>
        /// 平台权限
        /// </summary>
        public int pg
        {
            get { return GetValue(nameof(pg), 1); }
        }

        /// <summary>
        /// 红包ID
        /// </summary>
        public int rpid
        {
            get { return GetValue(nameof(rpid), 0); }
        }

        /// <summary>
        /// 红包开启剩余时间(单位:秒)
        /// TODO:单位是猜的
        /// </summary>
        public int slt
        {
            get { return GetValue(nameof(slt), 0); }
        }

        /// <summary>
        /// 红包销毁剩余时间(单位:秒)
        /// TODO:单位是猜的
        /// </summary>
        public int elt
        {
            get { return GetValue(nameof(elt), 0); }
        }

    }

}
